package com.ftar.urgent;

import android.app.Application;

import com.alibaba.android.arouter.launcher.ARouter;

/**
 * @author: wei.jin
 * @date: 2023/7/3
 * @email: wei.jin@fanttec.com
 * @description：
 */
public class FtApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();

        initArouter();
    }

    private void initArouter() {
        if(BuildConfig.DEBUG) {
            ARouter.openDebug();
            ARouter.openLog();
        }
        ARouter.init(this);
    }

    @Override
    public void onTerminate() {
        super.onTerminate();

        ARouter.getInstance().destroy();
    }
}